package com.ruoyi.applet.utli;

import org.springframework.stereotype.Component;

import java.util.Map;
@Component
public class TokenByUsrId {

    public static Long tokenByUsrId(String token){
        Map<String,Object> map = JwtUtil.parseToken(token);
        return Long.parseLong(map.get("usrId").toString());
    }
}
